
import java.net.*;

public class PeerInfo {

     String PeerID;
     Socket Socket_Address;
     String BitField;
     long LinkSpeed;
     boolean IsChoked;
     boolean IsInterested;
     boolean IsRunning;


    public PeerInfo(String peerId, Socket socketAddress, String bitField, int linkSpeed) {
        PeerID = peerId;
        Socket_Address = socketAddress;
        BitField = bitField;
        LinkSpeed = linkSpeed;
        IsChoked = false;
        IsInterested = false;
        IsRunning = true;
    }

    public void setPeerID(String peerId) {
        PeerID = peerId;
    }
    public void setSocketAddress(Socket socketAddress) {
        Socket_Address = socketAddress;
    }
    public void setBitField(String bitField) {
        BitField = bitField;
    }
    public void setLinkSpeed(long linkSpeed) {
        LinkSpeed = linkSpeed;
    }
    public void setIsChoked(boolean isChoked) {
        IsChoked = isChoked;
    }
    public void setIsInterested(boolean isInterested) {
        IsInterested = isInterested;
    }

    public String getPeerID() {
        return PeerID;
    }
    public Socket getSocketAddress() {
        return Socket_Address;
    }
    public String getBitField() {
        return BitField;
    }
    public long getLinkSpeed() {
        return LinkSpeed;
    }
    public boolean getIsChoked() {
        return IsChoked;
    }
    public boolean getIsInterested() {
        return IsInterested;
    }

}
